import React from 'react';
import UserApi from '../../api/userApi';
import userApi from '../../api/userApi';
import { Button } from "antd"
class Reg extends React.Component {
    test() {
        console.log(1);
        userApi.checkName('hws').then(res => {
            console.log(res.data.message);
        })
    }
    
    render (){
        return (
            <div>
                <h1>注册页面</h1>
                <Button>antd测试</Button>
                <button onClick={this.test.bind(this)}>测试接口</button>
            </div>
        )
    }
}
export default Reg;